import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';
const api = apiCreator();
let csrfToken;

export default {
  // 获取簿记管理列表
  getList: (query) => api.post(`${config.interfaces.type1}tradeOperate/getTrades`, query),
  //删除
  delTrade: (query) => api.get(`${config.interfaces.type1}tradeOperate/delTrade`, query),
  // 簿记上传
  uploadFile: (query) => api.post(`${config.interfaces.type1}bookkeepingImport/saveBookImportStatus`, query.file),
  // 上传历史记录
  getUploadHistory: (query) => api.post(`${config.interfaces.type1}bookkeepingImport/queryByTenantAndDate`, query),
};
